package com.rs.game.player.dialogues.impl;

import com.rs.game.player.dialogues.Dialogue;
import com.rs.utils.ShopsHandler;

public class FredBinder extends Dialogue {
	
	private int npcId;

	@Override
	public void start() {
		npcId = (int) parameters[0];
		sendNPCDialogue(npcId, 9827, "Would you like to view my Melee Shops?");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			sendOptionsDialogue("Select an Option", "Melee Weapons", "Melee Armour", "Misc (Amulets, boots, helmets,...)");
			stage = 0;
			break;
		case 0:
			switch (componentId) {
			case OPTION_1:
				end();
				ShopsHandler.openShop(player, 4);
				break;
			case OPTION_2:
				end();
				ShopsHandler.openShop(player, 5);
				break;
			case OPTION_3:
				end();
				ShopsHandler.openShop(player, 42);
			}
		}
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}
}